<?php

include './includes.php';

$pagina = $_GET['page'];

$imagenes = imagenesQuery::create()
        ->orderByFecha('desc')
        ->offset((int)($pagina-1)*12)
        ->limit(12)
        ->find();

echo json_encode($imagenes->toArray());

?>
